package gui;

import java.awt.*;
import javax.swing.*;
import domein.*;

public class MyFrame extends JFrame {
	private Control contr = null;
	
	public MyFrame(Control contr){
		super();
		this.contr = contr;
		MyPanel panel = new MyPanel(this.contr);
		add(panel,BorderLayout.NORTH);
		setSize(950,400);
		setDefaultCloseOperation(EXIT_ON_CLOSE);		
		getGlassPane().setVisible(true);
		setVisible(true);
	}
	
	protected JRootPane createRootPane(){
		return new MyRootPane();
	}
	
	public void addLayerToPane(MyScrollPane scrollPane){
		MyLayeredPane pane = (MyLayeredPane)getLayeredPane();
		pane.addInLayer(scrollPane);
	}
}
